package cn.stylefeng.guns.sys.modular.tao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 库存
 * </p>
 *
 * @author 
 * @since 2019-09-11
 */
@TableName("zt_stock")
public class Stock implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品ID
     */
    @TableField("num_id")
    private String numId;

    /**
     * 实际库存数量
     */
    @TableField("qty")
    private BigDecimal qty;

    /**
     * 可销售库存数量
     */
    @TableField("saleqty")
    private BigDecimal saleqty;

    /**
     * 所在仓库
     */
    @TableField("ktype_id")
    private String ktypeId;

    /**
     * 售价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 成本价
     */
    @TableField("cost_price")
    private BigDecimal costPrice;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumId() {
        return numId;
    }

    public void setNumId(String numId) {
        this.numId = numId;
    }

    public BigDecimal getQty() {
        return qty;
    }

    public void setQty(BigDecimal qty) {
        this.qty = qty;
    }

    public BigDecimal getSaleqty() {
        return saleqty;
    }

    public void setSaleqty(BigDecimal saleqty) {
        this.saleqty = saleqty;
    }

    public String getKtypeId() {
        return ktypeId;
    }

    public void setKtypeId(String ktypeId) {
        this.ktypeId = ktypeId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    @Override
    public String toString() {
        return "Stock{" +
        "id=" + id +
        ", numId=" + numId +
        ", qty=" + qty +
        ", saleqty=" + saleqty +
        ", ktypeId=" + ktypeId +
        ", price=" + price +
        ", costPrice=" + costPrice +
        "}";
    }
}
